import myAxios from "../MyAxios";
import BASEURL from "../BaseUrl";
const cinemaRoomApi = {
  //添加放映厅接口
  add(params) {
    return myAxios.post(BASEURL + "/cinema-room/add", params);
  },
  //查询所有放映厅类型
  queryAllTypes() {
    return myAxios.get(BASEURL + "/cinema-room/types");
  },
  //更具影院查询所有放映厅
  list(params) {
    return myAxios.get(BASEURL + "/cinema-rooms/cinemaid", params);
  },
  //删除放映厅
  delete(params) {
    return myAxios.post(BASEURL + "/cinema-room/del", params);
  },
  //修改座位模版
  updateSeatTemplate(params) {
    return myAxios.post(BASEURL + "/cinema-room/edit-seat-template", params);
  },
  //通过Id查询所有放映厅信息
  queryById(params) {
    return myAxios.get(BASEURL + "/cinema-room/sel", params);
  },
};
export default cinemaRoomApi;
